import org.rsbot.script.methods.Keyboard;

class DebaucherySoulWars$Angle extends Thread
{
  private volatile boolean stop = false;
  private volatile boolean pause = false;

  DebaucherySoulWars$Angle(DebaucherySoulWars paramDebaucherySoulWars) {
  }
  public void run() {
    try { while (!this.stop) {
        if (DebaucherySoulWars.access$4300(this.this$0)) {
          while (DebaucherySoulWars.access$4300(this.this$0)) {
            Thread.sleep(this.this$0.random(25, 150));
          }
        }
        if (this.pause) {
          while (this.pause) {
            Thread.sleep(this.this$0.random(25, 150));
          }
        }
        if (this.this$0.random(1, 15000) == 342) {
          char c = '\000';
          if (this.this$0.random(1, 5) == 2) {
            c = '\'';
          }
          if (this.this$0.random(1, 5) == 2) {
            c = '%';
          }
          long l = System.currentTimeMillis() + this.this$0.random(250, 1200);

          if (c != 0) {
            DebaucherySoulWars.access$4400(this.this$0).pressKey(c);
            while ((System.currentTimeMillis() < l) && 
              (!this.pause))
            {
              Thread.sleep(this.this$0.random(5, 15));
            }
            DebaucherySoulWars.access$4500(this.this$0).releaseKey(c);
          }
          Thread.sleep(this.this$0.random(this.this$0.random(6000, 8000), this.this$0.random(19000, 20000)));
        }
      }
    }
    catch (Exception localException)
    {
    }
  }
}